package com.eltonkent.dashboard.service.requesthandler;

import com.eltonkent.dashboard.data.container.Container;
import com.eltonkent.dashboard.service.IServiceTask;
import com.eltonkent.dashboard.service.helper.HttpServiceHelper;
import com.eltonkent.dashboard.util.gps.WebResponseNotificationListener;

public abstract class HttpRequest implements IServiceTask<Container> {

	protected HttpServiceHelper httpServiceHelper;
	protected WebResponseNotificationListener listener;

	public HttpRequest(WebResponseNotificationListener listener) {
		this.listener = listener;
	}

	@Override
	public abstract Container call() throws Exception;

	@Override
	public void cancel() {

	}

	@Override
	public abstract void postExecute(Container container, Throwable throwable);

	@Override
	public abstract void preExecute() throws Exception;

}
